<template>
  <!-- 每一项内容右侧的删除按钮 -->
  <button @click="removeTodo(item.id)">删除</button>
</template>

<script>
export default {
  name: "TodoRemove",
  props: ["item"],
  methods: {
    removeTodo(id) {
      this.$emit("removeTodo", id);
    },
  },
};
</script>